#include "showClueCardMessageHandler.h"
#include "showClueCardMessage.h"
#include "showClueCardHandler.h"
#include "opResMessage.h"

void ShowClueCardMessageHandler::handle(MtpMessage* message, const IPaddress& attachment)
{
	ShowClueCardMessage* msg = (ShowClueCardMessage*)message;
	ShowClueCardHandler h(msg->getId(), msg->getChannel());
	h();
	OpResMessage p(true, msg);
	p.send(attachment);
}

MtpMessage* ShowClueCardMessageHandler::decode(MtpProtocol* packet, const IPaddress& attachment)
{
	return new ShowClueCardMessage(packet);
}
